
#ifndef _MEMBER_BDOUBLESLIDER_H_
#define _MEMBER_BDOUBLESLIDER_H_

#include <BPointArray>
#include <BIcon>
#include <BImage>
#include <BDoubleSlider>

namespace BWE
{
	class member_BDoubleSlider
	{
	public:
		member_BDoubleSlider(BDoubleSlider* slider);
		~member_BDoubleSlider();

		double valueOfPoint(const BPoint& pos) const;
		void freshRects();

		BDoubleSlider*	boss;
		double			value;
		double			minimum;
		double			maximum;
		double			step;
		bool			readOnly;
		Orientation		orientation;
		int				grooveSize;
		BImageHolder	grooveImage;
		BSize			handleSize;
		Graph			handleGraph;

		bool			dirty;
		bool			hovered;
		bool			pressed;
		BRect			handleRect;
		BRect			grooveRect;
		BPointfArray	handlePoints;
		BPointfArray	groovePoints;
	};
}

#endif